package com.myblog.service;

import com.myblog.po.Blog;
import com.myblog.vo.BlogQuery;

import java.util.List;
import java.util.Map;

public interface BlogService {

/*
    Page<Blog> listblog(Pageable pageable, BlogQuery blog);
    Page<Blog> listblog(Pageable pageable);
    Page<Blog> listblog(String query,Pageable pageable);

    Page<Blog> listblog(Long tagid,Pageable pageable);

    List<Blog> listRecommendBlogTop(Integer size);
*/
    List<Blog>listblog();
    Long CountBlog();

    void saveBlog(Blog blog);
    void DeleteBlog(Long id);
    void DeleteBlogFK(Long id);

    Blog getBlog(Long id);
    void  EditBlog(Blog blog);
    List<Blog> searchblog(BlogQuery blog);
    List<Blog> listRecommendBlogTop();
    List<Blog> seekBlog(String query);
    List<Blog> listBlogbyTypeid(BlogQuery blogQuery);
    Map<String , List<Blog>> archivesBlog();
    void AddViews(Long id);

}
